package main
import (
	"signaling/src/framework"
	"signaling/src/action"

)

func init() {

	//浏览器和信令服务器和rtc服务器  指令（数据）交互
	framework.GActionRouter["/signaling/push"] = action.NewPushAction()
	framework.GActionRouter["/signaling/stoppush"] = action.NewStopPushAction()
	framework.GActionRouter["/signaling/sendanswer"] = action.NewSendAnswerAction()
	//pull
	framework.GActionRouter["/signaling/pull"] = action.NewPullAction()
	framework.GActionRouter["/signaling/stoppull"] = action.NewStopPullAction()


	//浏览器和信令服务器交互-》请求推流页面内容

	//页面访问：https://192.168.3.12:8081/xrtcclient/push?uid=999&streamName=888&audio=0&video=1
	framework.GActionRouter["/xrtcclient/push"] = action.NewXrtcClientPushAction()
	///浏览器和信令服务器交互-》请求拉流页面内容
	framework.GActionRouter["/xrtcclient/pull"] = action.NewXrtcClientPullAction()



}